package com.enjoyor.health.HGPT.core.mapper;

import com.enjoyor.health.HGPT.core.dto.ReportUserDto;
import com.enjoyor.health.HGPT.core.entity.ReportRecord;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author enjoyor
 * @since 2023-10-18
 */
public interface ReportRecordMapper extends BaseMapper<ReportRecord> {

    List<ReportRecord> getReportRecordByOpenId(Map<String, Object> map);

    ReportRecord getReportRecordByOpenIdSingle(Map<String, Object> map);

    ReportUserDto getReportByUser(Map<String, Object> map);

    ReportUserDto getReportByUserV2(Map<String, Object> map);

    ReportRecord getLatestVersion(Map<String, Object> map);

    ReportRecord getLatestVersionByType(Map<String, Object> map);

    ReportRecord getRobotReportRecordByOpenIdSingle(Map<String, Object> map);
}
